package com.itheima.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.common.R;
import com.itheima.domain.Orders;
import com.itheima.dto.OrdersDto;


public interface OrdersService extends IService<Orders> {

    /**
     * 用户下单  添加订单信息
     * @param orders
     */
    public void submit(Orders orders);


    /**
     * 查询订单列表
     * @param page
     * @param pageSize
     * @return
     */
    Page<OrdersDto> list (int page, int pageSize);



    /**
     * 再来一单
     * @param orders
     */
    void again(Orders orders);

}
